<?php /* Smarty version Smarty-3.1.16, created on 2017-08-29 15:39:24
         compiled from "D:\WORK\DRF\\wap\theme\xth1\\tpls\order_cost_dtl.tpl" */ ?>
<?php /*%%SmartyHeaderCode:663159a3c5a5da9f07-38449598%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '6eacb5355de48f5d3076644bc36ab7647a8c0ff2' => 
    array (
      0 => 'D:\\WORK\\DRF\\\\wap\\theme\\xth1\\\\tpls\\order_cost_dtl.tpl',
      1 => 1503992330,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '663159a3c5a5da9f07-38449598',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.16',
  'unifunc' => 'content_59a3c5a5e82851_70991225',
  'variables' => 
  array (
    'costInfo' => 0,
    'costDtl' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_59a3c5a5e82851_70991225')) {function content_59a3c5a5e82851_70991225($_smarty_tpl) {?><!DOCTYPE html>
<html lang="zh-cmn-Hans">
<head>
    <?php echo $_smarty_tpl->getSubTemplate ("comm_header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

</head>
<body ontouchstart style="background: #ebebeb;">
<div class="container" id="container">
    <?php if ($_smarty_tpl->tpl_vars['costInfo']->value) {?>
    <div class="page" style="margin-bottom: 45px">
        <!--details-->
        <div class="weui-form-preview" style="margin-top: 0">
            <div class="weui-form-preview__bd">
                <div class="weui-form-preview__item">
                    <label class="weui-form-preview__label"><span class="text-gray">报价单号：</span><?php echo $_smarty_tpl->tpl_vars['costInfo']->value->costCode;?>
</label>
                    <span class="weui-form-preview__value"><span class="text-gray">业务员：</span><?php echo $_smarty_tpl->tpl_vars['costInfo']->value->trueName;?>
</span>
                </div>
                <div class="weui-form-preview__item">
                    <label class="weui-form-preview__label"><span class="text-gray">项目名称：</span><?php echo $_smarty_tpl->tpl_vars['costInfo']->value->costName;?>
</label>
                    <span class="weui-form-preview__value"><a class="weui-btn  contact-btn" href="tel:<?php echo $_smarty_tpl->tpl_vars['costInfo']->value->userMobile;?>
">联系业务员</a></span>
                </div>
                <div class="weui-form-preview__item">
                    <label class="weui-form-preview__label"><span class="text-gray">涂装体系：</span><?php echo $_smarty_tpl->tpl_vars['costInfo']->value->categoryName;?>
</label>
                    <span class="weui-form-preview__value"></span>
                </div>
                <div class="weui-form-preview__item">
                    <label class="weui-form-preview__label"><span class="text-gray">报价时间：</span><?php echo $_smarty_tpl->tpl_vars['costInfo']->value->createTime;?>
</label>
                    <span class="weui-form-preview__value"><span class="text-gray">报价有效期：</span><?php echo $_smarty_tpl->tpl_vars['costInfo']->value->validDate;?>
</span>
                </div>
                <div class="weui-form-preview__item">
                    <label class="weui-form-preview__label"><span class="text-gray">施工面积：</span><?php echo $_smarty_tpl->tpl_vars['costInfo']->value->area;?>
平米</label>
                    <span class="weui-form-preview__value"><span class="text-gray">物流方式：</span><?php echo $_smarty_tpl->tpl_vars['costInfo']->value->sendTypeName;?>
</span>
                </div>
                <div class="weui-form-preview__item weui_describe">
                    <label class="weui-form-preview__label"><span class="text-gray">备注说明：</span></label>
                    <p><?php echo $_smarty_tpl->tpl_vars['costInfo']->value->remark;?>
</p>
                </div>
            </div>
        </div>

        <!--list-->
        <?php if (isset($_smarty_tpl->tpl_vars['costInfo']->value->dtl)) {?>
        <?php  $_smarty_tpl->tpl_vars['costDtl'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['costDtl']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['costInfo']->value->dtl; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['costDtl']->key => $_smarty_tpl->tpl_vars['costDtl']->value) {
$_smarty_tpl->tpl_vars['costDtl']->_loop = true;
?>
        <div class="weui-form-preview weui-details-list">
            <div class="weui-form-preview__bd">
                <div class="weui-form-preview__item">
                    <label class="weui-form-preview__label"><span class="text-blue">产品系列：<?php echo $_smarty_tpl->tpl_vars['costDtl']->value->bigCategoryName;?>
</span></label>
                    <span class="weui-form-preview__value"><span class="text-gray">单价：</span><span class="text-red"><?php echo $_smarty_tpl->tpl_vars['costDtl']->value->salePrice;?>
 元/KG</span></span>
                </div>
                <div class="weui-form-preview__item">
                    <label class="weui-form-preview__label"><span class="text-gray">产品名称：</span><?php echo $_smarty_tpl->tpl_vars['costDtl']->value->goodsName;?>
</label>
                    <span class="weui-form-preview__value"></span>
                </div>
                <div class="weui-form-preview__item">
                    <label class="weui-form-preview__label"><span class="text-gray">包装规格：</span>50  KG/塑料桶</label>
                    <span class="weui-form-preview__value"><span class="text-gray">涂布率：</span><?php echo $_smarty_tpl->tpl_vars['costDtl']->value->useRate;?>
  KG/平方米</span>
                </div>
                <div class="weui-form-preview__item">
                    <label class="weui-form-preview__label"><span class="text-gray">备&emsp;&emsp;注：</span><?php echo $_smarty_tpl->tpl_vars['costDtl']->value->remark;?>
</label>
                    <span class="weui-form-preview__value"></span>
                </div>
            </div>
        </div>
        <?php } ?>
        <?php }?>
        <!--list end-->
    </div>
    <div class="weui-footer weui-footer_fixed-bottom">
        <a href="tel:021-888888" class="weui-btn weui-btn_primary">联系客服</a>
        <?php if ($_smarty_tpl->tpl_vars['costInfo']->value->costStatus==1) {?>
        <a href="javascript:costConfirm();" class="weui-btn weui-btn_warn">确认报价</a>
        <?php } else { ?>
        <a href="javascript:void(0);" class="weui-btn weui-btn_warn weui-btn_disabled">确认报价</a>
        <?php }?>
    </div>
    <?php }?>
</div>

<?php echo $_smarty_tpl->getSubTemplate ("comm_js.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>


<script type="text/javascript">
    $(function(){
        $('.weui-navbar__item').on('click', function () {
            var _this=$(this).index()
            $(this).addClass('weui-bar__item_on').siblings('.weui-bar__item_on').removeClass('weui-bar__item_on');
            $(".weui-tab__content").eq(_this).show().siblings('.weui-tab__content').hide()
        });
    });

    <?php if ($_smarty_tpl->tpl_vars['costInfo']->value) {?>
    function costConfirm() {
        E.ajax_post({
            url : "/wap/orderDtl.html?ajaxFlg=2&code=<?php echo $_smarty_tpl->tpl_vars['costInfo']->value->costCode;?>
",
            call : function (o) {
                E.wxAlert(o.message, function () { location.reload(); } , 1)
            }
        });
    }
    <?php }?>

</script>
</body>
</html>
<?php }} ?>
